package com.jungle.app.domain.entity;

import com.jungle.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Comment;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(name = "jw_spot_transport")
@org.hibernate.annotations.Table(appliesTo = "jw_spot_transport", comment = "景点交通表")
@Where(clause = "deleted is null or deleted != true")
@SQLDelete(sql = "update jw_spot_transport set deleted = true where id = ? ")
public class JwSpotTransport extends BaseEntity {
    @Comment("交通ID")
    @Column(name = "TransportationID")
    private String transportationID;

    @Comment("景点ID")
    @Column(name = "ScenicSpotID")
    private String scenicSpotID;

    @Comment("交通方式")
    @Column(name = "TransportationMode")
    private String transportationMode;

    @Comment("出发地")
    @Column(name = "Departure")
    private String departure;

    @Comment("目的地")
    @Column(name = "Destination")
    private String destination;

    @Comment("距离")
    @Column(name = "Distance")
    private String distance;

    @Comment("预计时间")
    @Column(name = "EstimatedTime")
    private String estimatedTime;

    @Comment("交通费用")
    @Column(name = "Cost")
    private String cost;

    @Comment("交通详情")
    @Column(name = "Details")
    private String details;

}
